//边框
<template>
  <div class="common-title">
    <div class="title">{{ toptitle }}</div>
    <slot></slot>
  </div>
</template>
<script>
export default {
  props: {
    toptitle: {
      default: '标题'
    }
  },
  data () {
    return {}
  }
}
</script>
<style lang="less" scoped>
.common-title {
  height: 100%;
  width: 100%;
  position: relative;
  border: 1px dashed #999999;
  padding: 15px;
  border-radius: 10px;
  .title {
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 900;
    background: var(--title-bk);
    letter-spacing: 2px;
    padding: 0 10px;
  }
}
</style>
